package construction.facade;

public class HomeFacade {
    private DVDPlayer dvdPlayer;
    private Projector projector;
    private Stereo stereo;
    private TheaterLight theaterLight;
    HomeFacade(){
        dvdPlayer = DVDPlayer.getInstance();
        projector = Projector.getInstance();
        stereo = Stereo.getInstance();
        theaterLight = TheaterLight.getInstance();
    }

    void ready(){
        dvdPlayer.on();
        projector.on();
        stereo.on();
        theaterLight.on();
    }
    void play(){
        dvdPlayer.play();
        theaterLight.mid();
    }
    void pause(){
        dvdPlayer.pause();
        theaterLight.lighted();
    }
    void stop(){
        dvdPlayer.off();
        projector.off();
        stereo.off();
        theaterLight.off();
    }

}
